move runtime packages out of api dir