added a dependency system using hashflags

Signed-off-by: Miethpo <miethpomail@yahoo.co.uk>