prepared for create contract api