fix loader/main