now init function works, only in lack of transport working