optimized path, params if no params given