trying to fix dependencies getting out of order