support header params
fix weird undefined error, by just adding some try catch blocks, that never seem to be executed, but prevent the error...
added resource descriptions