add route function for easy development