change entry function to class, so it's ok with composer class loader