hard code start and end
fix flash and panel