added some rules for client