single tier application factory