thanks for your reply, though it dose not serve my purpose. this is kind of static configurations selected at start up. what i need is to give back replies based on the request. e.g. based on mac address or time of day and some other attributes. so i can do something like: