initial stage of api