added creationg of log folder for celery
interface: added variable check that removed one call of API
interface: several code patterns changes