include optional scope for ajax call