stupid shit to make it work