first implementation of message queue
added scheduler and tast
small changes