added java code for signpost (not working)