Use some functions in closure
remove accept header
Cleanup