It is desirable that the contractor registered with authorities under PF&ESI ACT and has his own code so that he has a direct responsibility and accountability for compliance with the provisions of the said statutes notwithstanding the fact that the ultimate responsibility lies with the principal employer as the definition of worker under the said Acts include the worker indirectly engaged through an agency.If the contractor has registered himself under the said acts, you can always contend that the contractor is an independent entity,has his own establishment, Employees,and direction and control of his employees lies with him and the principal employer is concerned with the ultimate result/outcome of the contract work assigned to him and it is for the contractor how and whatway he gets things done from his employees. But you should ensure that the principal employer has no say in the matters of recruitment, supervision and disciplinary matters of contractors employees and these aspect