remove amdefine, fix require deps