give rules to client through ejs
switched to tiny logger