add global functions, update composer file