import functions in init, general fmap function

Signed-off-by: Andrew <a@0x41.co>