load services only if needed, fix file upload failure