trying to load_current_resource with proper state variables