refactored side_loading