added beans, fixed pager and a lot of other things