add missing require and removed dependancy on api