check if there is main fn