added flags and footer fix less