fixed logging, fixed schema creation