chain scope calls and added count function to proxy