migrated referenced code from other projects to this repository