imports functions instead of copy/pasta