Prepare code to 0.4.0

move flags support to Route